/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.ajz.entity;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import org.hibernate.validator.constraints.Length;

/**
 * 食品安全信息Entity
 * @author zzf
 * @version 2019-04-15
 */
@Table(name="ajz_food_safety", alias="a", columns={
		@Column(name="id", attrName="id", label="液化气表id", isPK=true),
		@Column(name="health_certificate", attrName="healthCertificate", label="健康证"),
		@Column(name="base_id", attrName="baseId", label="对应公司的id"),
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class AjzFoodSafety extends DataEntity<AjzFoodSafety> {
	
	private static final long serialVersionUID = 1L;
	private String healthCertificate;		// 健康证
	private String baseId;		// 对应公司的id
	
	public AjzFoodSafety() {
		this(null);
	}

	public AjzFoodSafety(String id){
		super(id);
	}
	
	@Length(min=0, max=255, message="健康证长度不能超过 255 个字符")
	public String getHealthCertificate() {
		return healthCertificate;
	}

	public void setHealthCertificate(String healthCertificate) {
		this.healthCertificate = healthCertificate;
	}
	
	@Length(min=0, max=64, message="对应公司的id长度不能超过 64 个字符")
	public String getBaseId() {
		return baseId;
	}

	public void setBaseId(String baseId) {
		this.baseId = baseId;
	}
	
}